package club.emergency.wechat.feedback.operate;

import club.emergency.wechat.model.feedback.Feedback;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create with IntelliJ IDEA
 * Project Name: business
 * Package Name: club.emergency.wechat.feedback.operate
 * Date: 2018/12/9
 *
 * @author: 快乐的小菌菌
 * Description:
 */
public interface FeedbackOperate {

    /**
     * 新增一条反馈
     *
     * @param feedback 对象
     * @return 以字符串类型返回
     */
    @PostMapping("/feedback-operate-provider/save")
    String save(@RequestBody Feedback feedback);

    /**
     * 反馈标记处理
     *
     * @param id 需要标记的反馈数据id
     * @return 以字符串类型返回
     */
    @PostMapping("/feedback-operate-provider/doDeal")
    String doDeal(@RequestParam("id") Long id);
}
